#include"SList.h"

void test1()
{
	SLTnode* plist = NULL;
	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLTPrint(plist);
	SLPushBack(&plist, 3);
	SLPushBack(&plist, 4);
	SLTPrint(plist);
	SLPopFront(&plist);
	SLPopBack(&plist);
	SLTPrint(plist);
	SLTnode* pos = SLFind(plist, 1);
	//SLInsert(&plist, pos, 5);
	SLTnode* pos1 = SLFind(plist, 3);
	SLInsertAfter(plist, 6);
	SLTPrint(plist);
	//SLErase(&plist, pos);
	SLEraseAfter(pos);
	SLTPrint(plist);

}
int main()
{
	test1();

	return 0;
}